import { $http } from '@escook/request-miniprogram'



export const http = $http
http.baseUrl = 'https://api-hmugo-web.itheima.net/api/public/v1'

// 请求拦截
http.beforeRequest = function(options) {
  wx.showLoading({
    title: '数据加载中...',
  })

}

// 响应拦截
http.afterRequest = function() {
  wx.hideLoading()
}
